import java.io.*;


class FileExROREmailBodyCreator
{
  
 public static void main (String args[]) throws IOException
 {
  
    String fileName = args[0];
    StringBuffer s = new StringBuffer();
    s.append("Hello \r\n\r\n");
    s.append("The RO Reject Detail Files are now available at the following FTP Site:\r\n");
    s.append("\r\n");
    s.append("FTP : ftp.minacsusa.com\r\n");
    s.append("Userid/Password : subarucare/subarucare\r\n");
    s.append("Folder : tosubarucare\r\n");
    s.append("\r\n");
    s.append("\r\n");
    s.append("All the files have been zipped together into the zip file '" + fileName + ".zip.'\r\n");
    s.append("\r\n");
    s.append("this zip File contains the summary file '" + fileName + "_SUMMARY.csv'.\r\n");
    s.append("The detail files are '" + fileName + "xxx-xxx.xls'  where 'xxx-xxx' is the dealer code.\r\n");
    s.append("\r\n");
    s.append("Please note that the details are provided only for the following reject reason codes (data  that could probably get corrected) :");
    s.append("\r\n");
    s.append("\r\n");
    s.append("Reject Code  Reject Description\r\n");
    s.append("-----------  -------------------\r\n");
    s.append("R002         Invalid RO VIN\r\n");
    s.append("R302         VIN <> 17 Chars\r\n");
    s.append("R004         Invalid Repair Order Mileage\r\n");
    s.append("R005         Invalid Repair Order Closed Date\r\n");
    s.append("R008         Mileage does not match the Model Year (>48000 mile)\r\n");
    s.append("R010         Invalid Address\r\n");
    s.append("R017         Blank Name\r\n");
    s.append("\r\n");
    s.append("\r\n");
    s.append("If you have any questions please contact Mahesh Chintalapati\r\n");
    s.append("Telephone: 248 848 5969\r\n");
    s.append("Email: Mahesh.Chintalapati@minacs.adityabirla.com\r\n");
    s.append("\r\n");
    s.append("\r\n");
    s.append("\r\n");
    s.append("Thank You.\r\n");
    /*
    s.append("Thank You and have a nice day\r\n");
    s.append("\r\n");
    s.append("Mahesh Chintalapati\r\nAditya Birla Minacs");
    s.append("\r\n");
    s.append("34115 West Twelve Mile Road\r\n");
    s.append("Farmington Hills, MI 48331\r\n");
    s.append("T. 248 848 5969\r\n");
    s.append("F. 248 488 3696\r\n");
    s.append("email: Mahesh.Chintalapati@minacs.adityabirla.com\r\n");
    s.append("website: www.minacs.adityabirla.com\r\n");
    s.append("\r\n");
    s.append("\r\n");
    s.append("This email message may contain proprietary, private and ");
    s.append("confidential information. The information transmitted is intended ");
    s.append("only for the person(s) or entities to which it is addressed. Any review,");
    s.append("retransmission, dissemination or other use of, or taking of any action in ");
    s.append("reliance upon, this information by persons or entities other than the ");
    s.append("intended recipient is prohibited and may be illegal. If you received this ");
    s.append("in error, please contact the sender and delete the message from your system.");
    */
    
    
    String dataDir = "";
    String txtFileName = "file_ex_ror_body.txt";
    
    FileWriter fw = new FileWriter(dataDir + txtFileName);
    BufferedWriter bw = new BufferedWriter(fw);
    bw.write(s.toString());
    bw.close();
    
  
 }
  
}